<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models\Base;

use Carbon\Carbon;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class WorkUserSchool
 *
 * @property int $id
 * @property int $work_user_id 维护人员id
 * @property int $school_id 学校id
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool query()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool whereSchoolId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool whereWorkUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool withTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkUserSchool withoutTrashed()
 * @mixin \Eloquent
 */
class WorkUserSchool extends Model
{
	use SoftDeletes;
	use HasDateTimeFormatter;
	const ID = 'id';
	const WORK_USER_ID = 'work_user_id';
	const SCHOOL_ID = 'school_id';
	const CREATED_AT = 'created_at';
	const UPDATED_AT = 'updated_at';
	const DELETED_AT = 'deleted_at';
	protected $table = 'work_user_schools';

	protected $casts = [
		self::ID => 'int',
		self::WORK_USER_ID => 'int',
		self::SCHOOL_ID => 'int',
		self::CREATED_AT => 'datetime',
		self::UPDATED_AT => 'datetime'
	];
}
